package edu.ycxy.poetry.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import edu.ycxy.poetry.entity.ZhiShi;
import edu.ycxy.poetry.vo.AddKnowVo;
import edu.ycxy.poetry.vo.UpdateKnowVo;
import org.apache.ibatis.annotations.Select;

/**
 * @Author @xin
 * @createDate 2022/3/8
 * @Description
 */
public interface IZhiShiService extends IService<ZhiShi> {

    //根据id倒序查询知识表中的所有内容
    PageInfo<ZhiShi> selectList(Integer pageNum, Integer pageSize);

    //根据知识的标题查询知识的详细信息
    ZhiShi selectByTitle(String title);

    // 增加知识
    String addKnow(AddKnowVo addKnowVo);

    //模糊搜索知识，进行分页展示
    PageInfo<ZhiShi> findListByTitle(String title,Integer pageNum,Integer pageSize);

    void DeleteById(Integer id);

    UpdateKnowVo findOneById(Integer id);

    Integer UpdateKnowById(UpdateKnowVo updateKnowVo);
}
